import Vuex from 'vuex';
import Vue from "vue";

Vue.use(Vuex)

export default new Vuex.Store({
    state: {
        /**
         * 轮播图列表
         */
        carouselList: [
            '/img/carouse1.jpg',
            '/img/carouse2.jpg',
            '/img/carouse3.jpg',
            '/img/carouse4.jpg'
        ],
        /**
         * 链接图片及路径列表
         */
        srcs: [
            {
                path: "/sign/query",
                src: "/img/home1.jpg",
                context: "执勤记录"
            },
            {
                path: "/task",
                src: "/img/home2.jpg",
                context: "我的任务"
            },
            {
                path: "/profile",
                src: "/img/home3.jpg",
                context: "个人中心"
            }
        ]
    },
    mutations: {
    },
    actions: {
    },
    modules: {
    }
})
